package com.todod.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.todod.dto.AuthorityDto;
import com.todod.entity.QueryEntry;
import com.todod.model.Authority;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gsh
 * @since 2020-11-16
 */
public interface IAuthorityService extends IService<Authority> {

	List<Authority> getList(QueryEntry queryEntry);

	void saveData(Long _userId, Authority authority);

	void editData(Long _userId, Authority authority);

	void delete(Long _userId, Long id);

	void deleteByMenuId(Long _userId, Long menuId);

	List<AuthorityDto> getAuthorityListByRoleId(Long roleId);

	Authority getByCodeAndMenuId(String code, Long menuId);

}
